Sharing Window
An object of class Sharing Window is a sharing window that appears when you choose Sharing from the File menu while a sharable container is selected.PROPERTIES
A sharing window has all the properties defined for object class Window on page 93: Bounds, Closeable, Floating, Index, Modal, Position, Resizable, Titled, Visible, Zoomable, and Zoomed.Unlike other windows, a sharing window also has these properties:
container
- A reference to the container to which the sharing
window belongs.
Class: Reference
Modifiable: Noexported
- A Boolean value that indicates whether the container to which the sharing window belongs is either shared or inside another container whose contents are being shared. If one of these conditions is true, the value is
true
and the container can be mounted or accessed remotely; if neither of these conditions is true, the value isfalse
and the container isn't available to remote computers.
Class: Boolean
Modifiable: Nofolder
- A reference to the folder, if any, to which the sharing
window belongs.
Class: Reference
Modifiable: Nogroup
- The name of the user or group selected in the pop-up menu labeled User/Group.
Class: String
Modifiable: Yesgroup privileges
- The group privileges selected in the sharing window. For example, if the See Folders checkbox is not selected and the
See Files and Make Changes checkboxes are selected for a user or group, the value of this property is"See Files, Make Changes"
(see page 82 for the definition of Sharing Privileges).
Class: Sharing Privileges
Modifiable: Yesguest privileges
- The guest privileges selected in the sharing window (that is, the settings labeled Everybody). For example, if the See Folders checkbox is not selected and the See Files and Make Changes checkboxes are selected for Everybody, the value of this property is
"See Files, Make Changes"
(see page 82 for the definition of Sharing Privileges).
Class: Sharing Privileges
Modifiable: Yesinherited privileges
A Boolean value that indicates whether the privileges for the object to which the sharing window belongs are the same as the privileges for the container in which the object is stored (true
) or not (false
). This property corresponds to the checkbox in the sharing window labeled "Same as enclosing folder". The value of this property is set tofalse
if you set any of the group, guest, or owner privileges individually.
Class: Boolean
Modifiable: Yesitem
- The item to which the sharing window belongs.
Class: Reference
Modifiable: Nomounted
- A Boolean value that indicates whether the sharable container to which the sharing window belongs is mounted on another computer's desktop (
true
) or not (false
).
Class: Boolean
Modifiable: Noowner
- The name of the sharable container's owner.
Class: String
Modifiable: Yesowner privileges
- The owner privileges selected in the sharing window. For example, if the See Folders checkbox is not selected and the
See Files and Make Changes checkboxes are selected for
the container's owner, the value of this property is"See Files, Make Changes"
(see page 82 for the definition of Sharing Privileges).
Class: Sharing Privileges
Modifiable: Yesprotected
- A Boolean value that indicates whether the sharable container is protected (
true
) or not (false
). A protected container can't be moved, renamed, or deleted. This property corresponds to the checkbox labeled "Can't be moved, renamed, or deleted" and is not available for disks.
Class: Boolean
Modifiable: Yessharable container
- The sharable container to which the sharing window belongs.
Class: Reference
Modifiable: Noshared
- A Boolean value that indicates whether the sharable container
to which the sharing window belongs is shared (true
) or not (false
). This property corresponds to the checkbox in the sharing window labeled "Share this item and its contents". If
the value istrue
, the sharable container to which the sharing window belongs can be mounted on the desktop of a remote computer.
Class: Boolean
Modifiable: YesELEMENT CLASSES
NoneCOMMANDS HANDLED
Close, Count, Data Size, Exists, Get, Open, SortDEFAULT VALUE CLASS RETURNED
A reference to a sharing window or, if you use the plural formsharing windows
, a list of references.EXAMPLE
This script opens the sharing windows for sharable containers on the desktop that belong to a specified owner:
tell application "Finder" open (sharing window of sharable containers whose owner is "John") end tell